package com.ybkj.daijia.common;

import java.io.Serializable;

/**
 * 保存 ID 与 用户名 方便其他地方使用
 *
 * @author Shine
 */
public class Principal implements Serializable {

    private static final long serialVersionUID = -7234466861033454083L;

    private Long id;

    private String username;

    private String companyName;

    private String companyAbbreviation;

    private Long companyId;

    private boolean companyType; //true:主公司,false:分公司

    private String virtualMessage;

    private String smsMessage;

    private String host;

    private String loginToken;

    public Principal() {
        super();
    }

    public Principal(Long id, String username) {
        super();
        this.id = id;
        this.username = username;
    }

    public Principal(Long id, String username, String companyName, String companyAbbreviation,
        Long companyId, boolean companyType) {
        super();
        this.id = id;
        this.username = username;
        this.companyName = companyName;
        this.companyAbbreviation = companyAbbreviation;
        this.companyId = companyId;
        this.companyType = companyType;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public boolean isCompanyType() {
        return companyType;
    }

    public void setCompanyType(boolean companyType) {
        this.companyType = companyType;
    }

    public String getCompanyAbbreviation() {
        return companyAbbreviation;
    }

    public void setCompanyAbbreviation(String companyAbbreviation) {
        this.companyAbbreviation = companyAbbreviation;
    }

    public String getVirtualMessage() {
        return virtualMessage;
    }

    public void setVirtualMessage(String virtualMessage) {
        this.virtualMessage = virtualMessage;
    }

    public String getSmsMessage() {
        return smsMessage;
    }

    public void setSmsMessage(String smsMessage) {
        this.smsMessage = smsMessage;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getLoginToken() {
        return loginToken;
    }

    public void setLoginToken(String loginToken) {
        this.loginToken = loginToken;
    }


}
